from pypinyin import lazy_pinyin, pinyin, Style

chinese_text = "观山"
chinese_arr = ["大法寺", "花桥", "龙坪", "梅川", "四望"]

simple_pinyin_list = lazy_pinyin(chinese_text)
print("lazy Pinyin (no tones):", simple_pinyin_list)

pinyin_string = ''.join(simple_pinyin_list)
print("Continuous Pinyin string:", pinyin_string)

complete_pinyin_list = pinyin(chinese_text, style=Style.NORMAL)  # 不带声调
print("Complete Pinyin (no tones):", complete_pinyin_list)

for word in chinese_arr:
    pinyin_list = lazy_pinyin(word)
    pinyin_str = ''.join(pinyin_list)
    print("连续的拼音: ", pinyin_str)

